package com.oocl.o2o.admin.service;

import java.util.List;

import com.oocl.o2o.admin.entity.Merchant;
import com.oocl.o2o.admin.vo.MerchantVO;
import com.oocl.o2o.connectutil.dto.MerchantDTO;

public interface MerchantService {
	/**
	 * 
	 * @param uname
	 * @return
	 */
	public Merchant findByName(String uname);
	
	/**
	 * 
	 * @param status
	 * @return
	 */
	public List<Merchant> findByStatus(int status);
	
	/**
	 * 
	 * @return
	 */
	public List<Merchant>findAll();
	
	/**
	 * 
	 * @param merchant
	 * @return
	 */
	public Merchant add(Merchant merchant);
	
	/**
	 * 
	 * @param merchant
	 * @return
	 */
	public Merchant update(Merchant merchant);
	
	/**
	 * 
	 * @param id
	 * @return
	 */
	public Merchant findById(String id);
	
	/**
	 * 
	 * @param merchantDTO
	 * @return
	 */
	public Merchant register(MerchantDTO merchantDTO);
	
	/**
	 * 
	 * @param id
	 * @return
	 */
	public MerchantVO findByIdForDetail(String id);
	
	/**
	 * 
	 * @param id
	 * @param type
	 * @return
	 */
	public String findByIdForShowImage(String id,String type);
	
	/**
	 * 
	 * @param id
	 * @param status
	 * @return
	 */
//	public Merchant changeStatus(Merchant m);
	/**
	 * 
	 * @param merchantVO
	 * @return
	 */
	public Merchant changeStatus(MerchantVO merchantVO);
	
	
	public Merchant changeSta(String id, String status);
	
	/**
	 * 
	 * @param id
	 * @param status
	 * @param content
	 * @return
	 */
	public Merchant changeStatusToThree(String id, String status,String content);
}
